#ifndef __SUBSCRIBE_MAG_DEL__H__
#define __SUBSCRIBE_MAG_DEL__H__


#include <mutex>
#include "json.h"

namespace Media{

class SubscribeMsgDel: public std::enable_shared_from_this<SubscribeMsgDel>
{
public:
    using Ptr = std::shared_ptr<SubscribeMsgDel>;
    
	static Ptr instance();

	bool subscribeMessages();

	bool onDevShutdown();

public:
	SubscribeMsgDel();
	~SubscribeMsgDel();

private:
    static SubscribeMsgDel::Ptr			    sm_subscribeMsgDelIns;

	static std::mutex 			            sm_insMutex;

	void *                                  m_listenerTag = nullptr;

};

}//namespace Media

#endif

